package main

import (
	"log"
	"system-admin/config"
	"system-admin/internal/routes"
	"system-admin/internal/utils"
)

// @title F-Blog WebSite API
// @version 1.0
// @description My F-Blog API WebSite

// @contact.name FxShadow
// @contact.url https://space.bilibili.com/76969706?spm_id_from=333.1007.0.0
// @contact.email RonronTG@qq.com

// @license.name Apache 2.0
// @license.url https://space.bilibili.com/76969706?spm_id_from=333.1007.0.0

// @host 127.0.0.1:80
// @BasePath
func main() {
	//初始化配置文件
	config.InitConfig()
	//初始化日志
	log.SetFlags(log.Llongfile | log.Lmicroseconds | log.Ldate)
	//初始化MySQL
	utils.InitMySQL()
	//初始化Redis
	utils.InitRedis()
	//运行路由
	routes.RunRouter()
}
